//==============================================================================
// Archer atlantean_Anim.txt
// Fixed the hero glow (birth and death) ~WarriorMario
//==============================================================================

import bow_atlantean_anim.txt
import atlantis_archer_shield_anim.txt

//==============================================================================
//define quiver
//{
//	set hotspot
//	{
//		version
//		{
//			Visual attachments c quiver
//		}
//	}
//}

// UNIT MODEL ALREADY HAS A QUIVER

//==============================================================================
define Fire
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Burning Pitch Arrow
		}
	}
}

//==============================================================================
define HandArrow
{
	SetSelector
	{
		TechLogic none/Flaming Weapons Active
		set hotspot
		{
			version
			{
				Visual Attachments A HandArrow
			}
		}	
		set hotspot
		{
			version
			{
				Visual Attachments A HandArrow
				connect FIRE Fire hotspot
			}
		}
	}
}

//==============================================================================
define heroglow
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Glow Small
		}
	}
}

//==============================================================================
define soul
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul
		}
	}
}

//==============================================================================
define soulborn
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero SoulBorn
		}
	}
}

//==============================================================================
define soulaurora
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Aurora
		}
	}
}

//==============================================================================
define soulauroraborn
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul AuroraBorn
		}
	}
}

//==============================================================================
define heavenlight
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Heaven Light
		}
	}
}

//==============================================================================
define soulbirth
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Hero Soul Birth
		}
	}
}

//==============================================================================
define Head
{
	SetSelector none
	{
		set hotspot
		{
			version
			{
				Visual archer x head iron
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
define Mail
{
	SetSelector
	{
		TechLogic none/Mail of Orichalkos
		set hotspot
		{
			version
			{
				Visualnone bimmy
			}
		}
		set hotspot
		{
			version
			{
				Visualparticle SFX A Armor Glow Small
			}
		}
	}
}

//==============================================================================
anim Idle
{
	SetSelector
	{
		ContainLogic
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_idleA
				connect Lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				connect RightHand HandArrow hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_carryidleA
				connect Lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim walk
{
	SetSelector 
	{
		ContainLogic
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_WalkA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag FootstepLeft 0.15 true   
				tag FootstepRight 0.50 true   
				//-- end auto generated section
				connect lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				connect RightHand HandArrow hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_Carry
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag FootstepLeft 0.15 true   
				tag FootstepRight 0.50 true   
				//-- end auto generated section
				connect lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim RangedAttack
{
	SetSelector none
	{
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_AttackA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag Attack 0.40 true   
				tag GenericSound 0.40 true   
				tag SpecificSoundSet 0.65 false BowArrow checkVisible
				//-- end auto generated section
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				connect lefthand bow hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim Death
{
	SetSelector none
	{
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_DeathA
				//-- auto generated by the bang animation tool
				//-- do not hand edit these values
				tag SpecificSoundSet 0.10 false MaleDeath checkVisible 
				//-- end auto generated section
				connect lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				connect ATTACHPOINT soul hotspot
				connect ATTACHPOINT soulaurora hotspot
				connect ATTACHPOINT heavenlight hotspot
				connect ATTACHPOINT soulbirth hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				connect RightHand HandArrow hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim Bored
{
	SetSelector
	{
		ContainLogic
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_BoredA
				connect Lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				connect RightHand HandArrow hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_carryBoredA
				connect Lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim Flail
{
	SetSelector none
	{
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_FlailA
				connect lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				Connect HOTSPOT heroglow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
				connect RightHand HandArrow hotspot
				replaceTexture archer x iron/archer x hero
			}
		}
	}
}

//==============================================================================
anim Birth
{
	SetSelector none
	{
		set hotspot
		{
			version
			{
				Visual Archer X ArcusH_BirthA
				replaceTexture archer x iron/archer x hero
				connect lefthand bow hotspot
				Connect TopOfHead Head hotspot
				Connect FrontAbdomen Mail hotspot
				connect ATTACHPOINT soulborn hotspot
				connect ATTACHPOINT soulauroraborn hotspot
				connect ATTACHPOINT heavenlight hotspot
				Connect HOTSPOT heroglow hotspot
				connect RightHand HandArrow hotspot
				//connect BackChest Quiver hotspot
				connect BackChest SmallAtlantisHeroShield hotspot
			}
		}
	}
}
